package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysWorkLogOrdersMapper;
import com.ruoyi.system.domain.SysWorkLogOrders;
import com.ruoyi.system.service.ISysWorkLogOrdersService;

/**
 * 调度命令Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-02-07
 */
@Service
public class SysWorkLogOrdersServiceImpl implements ISysWorkLogOrdersService 
{
    @Autowired
    private SysWorkLogOrdersMapper sysWorkLogOrdersMapper;

    /**
     * 查询调度命令
     * 
     * @param id 调度命令ID
     * @return 调度命令
     */
    @Override
    public SysWorkLogOrders selectSysWorkLogOrdersById(Long id)
    {
        return sysWorkLogOrdersMapper.selectSysWorkLogOrdersById(id);
    }

    /**
     * 查询调度命令列表
     * 
     * @param sysWorkLogOrders 调度命令
     * @return 调度命令
     */
    @Override
    public List<SysWorkLogOrders> selectSysWorkLogOrdersList(SysWorkLogOrders sysWorkLogOrders)
    {
        return sysWorkLogOrdersMapper.selectSysWorkLogOrdersList(sysWorkLogOrders);
    }

    /**
     * 新增调度命令
     * 
     * @param sysWorkLogOrders 调度命令
     * @return 结果
     */
    @Override
    public int insertSysWorkLogOrders(SysWorkLogOrders sysWorkLogOrders)
    {
        return sysWorkLogOrdersMapper.insertSysWorkLogOrders(sysWorkLogOrders);
    }

    /**
     * 修改调度命令
     * 
     * @param sysWorkLogOrders 调度命令
     * @return 结果
     */
    @Override
    public int updateSysWorkLogOrders(SysWorkLogOrders sysWorkLogOrders)
    {
        return sysWorkLogOrdersMapper.updateSysWorkLogOrders(sysWorkLogOrders);
    }

    /**
     * 批量删除调度命令
     * 
     * @param ids 需要删除的调度命令ID
     * @return 结果
     */
    @Override
    public int deleteSysWorkLogOrdersByIds(Long[] ids)
    {
        return sysWorkLogOrdersMapper.deleteSysWorkLogOrdersByIds(ids);
    }

    /**
     * 删除调度命令信息
     * 
     * @param id 调度命令ID
     * @return 结果
     */
    @Override
    public int deleteSysWorkLogOrdersById(Long id)
    {
        return sysWorkLogOrdersMapper.deleteSysWorkLogOrdersById(id);
    }
}
